import { defineComponent } from 'vue'
import { RouterView } from 'vue-router'
import { ElConfigProvider } from 'element-plus'
import zhCn from 'element-plus/lib/locale/lang/zh-cn'
import dayjs from 'dayjs'
import 'dayjs/locale/zh-cn'
import './global.scss'
dayjs.locale('zh-cn')
// This starter template is using Vue 3 <script setup> SFCs
// Check out https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup

const App = defineComponent(function App() {
  return () => (
    // <ElConfigProvider locale={zhCn} size="small">
    <ElConfigProvider locale={zhCn}>
      <RouterView></RouterView>
    </ElConfigProvider>
  )
})

export default App
